Scroll to navigation

GLUTBITMAPLENGTH(3) Library Functions Manual (local) GLUTBITMAPLENGTH(3)

NAME

glutBitmapLengthReturn the width of a bitmapped string, in pixels.

LIBRARY

OpenGLUT - bitmapfont

SYNOPSIS

#include <openglut.h>

int
glutBitmapLength(void *font, const unsigned char *string);

PARAMETERS


font

A bitmapped font identifier.


string

A NUL-terminated ASCII string.

DESCRIPTION

Returns the maximum horizontal OpenGL raster position offset for a


string

in a bitmapped

font.

As with glutBitmapString(), newlines are taken into consideration.

Returns 0 if the


font

is invalid or if the

string

is empty or

NULL.

SEE ALSO

glutBitmapString(3) glutBitmapWidth(3) glutBitmapHeight(3) glutStrokeLength(3)